package com.ltmall.api.dao;

import com.ltmall.api.bean.ActivityPrice;
import com.ltmall.api.bean.Cart;
import com.ltmall.api.bean.ThSku;

import java.util.List;

public interface ICartDAO {
	//修改购物车数量
	public boolean setNumber(int number, int cartID);
	//删除购物车
	public boolean delCart(int cartID);
	//获取购物车列表
	public List<?> cartList(int userID, int shopID);
	//获取购物车一级分类
	public List<?> shopList(int userID);
	//获取购物车
	public Cart cartDetail(int cartID);
	//判断商品是否存在
	public Cart isGoodsExist(int goodsID, int userID, String goodsFormat);
	//修改购物车数量
	public boolean numberAndOne(int goodsID, int userID);
	//删除购物车
	public boolean delCart(int goodsID, String goodsFormat, int userID);
	//修改购物车
	public boolean updateCart(int cartID, int number, String goodsFlavor);
	//获取商品价格
	public ThSku getPrice(int goodsID, String format);
	//判断是否是活动商品
	public ActivityPrice getActivityPrice(int goodsID, String goodsFormat);
	public Cart isGroupGoodsExist(int goodsID, int userID, String format, int directID);
	
}
